package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper extends BaseMapper<AddressBook> {
    AddressBook getAddressBookById(Long id);

    AddressBook getDefaultAddressBook(Long userId);

    List<AddressBook> getAllAddressBook(Long userId);


}
